package com.atguigu.springcloud.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class PaymentController {

    Logger logger = LoggerFactory.getLogger(PaymentController.class);

    @Value("${server.port}")
    private String serverPost;

    @RequestMapping(value = "/payment/zk")
    public String paymentzk() {
        logger.info("paymentzk serverPort:{}", serverPost);
        return "springcloud with zookeeper :" + serverPost + "\t" + UUID.randomUUID().toString();
    }
}
